package com.gkjsj.exam2;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {
	//@Resource(name="teacherDao")
	@Autowired
	private TeacherDao teacherDao;
	
//	public void setTeacherDao(TeacherDao teacherDao) {
//		this.teacherDao = teacherDao;
//	}
	@Override
	public void talk() {
		teacherDao.say();
		System.out.println("teacherService talk...");
	}

}
